﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Client_ShowPlan.ascx.cs" Inherits="WebControl_Client_ShowPlan" %>


<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate> 
    <table cellspacing="0">
       <tr class="trtieude">
         <td align="center" width="15%">Bus Operator</td>
         <td align="center" width="15%">Bus Type</td>
         <td align="center" width="15%">Departure</td>
         <td align="center" width="15%">Arrival</td>
         <td align="center" width="15%">Duration</td>
         <td align="center" width="15%">Seat</td>
         <td align="center" width="10%">Price</td>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IdLocation" DataKeyNames="IdLocation">
    <ItemTemplate>
        <tr>
        	<td><input type="checkbox" name="idlocation" value="<%# Eval("IdLocation") %>"/></td>
            <td><%# Eval("StartLocation") %></td>
            <td><%# Eval("EndLocation") %></td>
            <td><%# Eval("DateStart")%></td>
            <td><%# Eval("TimePlan")%></td>

    
            <td><a href="InsertTravelPlanControl.ascx?idpro=<%# Eval("IdLocation") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="#" class="ask"><img src="../Images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="IdLocation"></asp:PlaceHolder>
    </LayoutTemplate>
</asp:ListView> 
</table>
	 <a href="#" class="bt_green"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>
     <a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a>
     <a href="#" class="bt_red"><span class="bt_red_lft"></span><strong>Delete items</strong><span class="bt_red_r"></span></a> 
     

     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="5">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>
        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel> 

